﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html class="x-admin-sm">
<head>
    <meta name="viewport" content="width=device-width" />
    <meta charset="UTF-8">
    <title>分切工序</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link href="~/Content/X-admin/css/font.css" rel="stylesheet" />
    <script src="~/Content/X-admin/lib/layui/layui.js"></script>
    <link href="~/Content/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/Content/X-admin/js/jquery.min.js"></script>
    <script src="~/Content/X-admin/js/xadmin.js"></script>
    <script src="~/Content/Scripts/System/systemFrame.js"></script>
    <script src="~/Content/Scripts/System/Common.js"></script>
    <script src="~/Content/Scripts/customer/Plan.js"></script>
</head>
<body>
    <span style="margin-top:15px;margin-left:15px">
        <xblock>
            <button class="layui-btn " onclick="saveData()"><i class="layui-icon"></i>保存</button>
            <button class="layui-btn" onclick="closeWin()"><i class="layui-icon">&#x1006;</i>取消</button>
        </xblock>
    </span>

    <div style="margin: 20px; border: 1px solid #dbdbdb;padding:15px">

        <form id="AddForm" class="layui-form layui-col-space5">
            <div class="layui-form-item layui-form-text">
                <label for="L_email" class="layui-form-label">
                   样版编码
                </label>
                <div class="layui-input-block">
                    <input type="text" id="yCodes" name="yCodes" autocomplete="off" class="layui-input" readonly/>
                </div>
            
            </div>


            <div class="layui-form-item layui-form-text">
                <label for="L_email" class="layui-form-label">
                    人员选择
                </label>
                <input id="plCode" name="plCode" type="hidden" />
                <div class="layui-input-block">
                    <input type="text" id="usersName" name="usersName" class="layui-input" onclick="chooseUser()">
                    <input type="hidden" id="usersCode" name="usersCode" />
                </div>
            </div>


            <div class="layui-form-item layui-form-text">

                <div class="layui-inline layui-show-xs-block">
                    <label for="desc" class="layui-form-label">样版状态</label>
                    <div class="layui-input-block">
                        <select name="doType" id="doType" class="cjfx">
                            <option value="">样版状态</option>
                        </select>
                    </div>
                </div>

            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">
                    备注
                </label>
                <div class="layui-input-block">
                    <input type="text" id="memo" name="memo" autocomplete="off" class="layui-input">
                </div>

            </div>
        </form>

    </div>
</body>
</html>
<script type="text/javascript">
    var yCodes = "";
    var plCode = "";
    $(function () {
        yCodes = getUrlVariable("yCodes");
        $("input[ name='yCodes']").val(yCodes);

        CommonData('ybzt', "cjfx");
   

        layui.use('form', function () {
            var form = layui.form;
            form.render();
        });
    });

    /**客户档案**/
    function chooseUser() {
        InfoOpenPage("../Common/selectUser?isSingle=1", "选择人员", "90%", "90%");
    }
    /**
    保存数据信息
    **/
    function saveData() {
        $.ajax({
            url: "../Basis/SetYangBanStatus",
            type: "post",
            data: { datas: JSON.stringify(FormToJson("AddForm")) },
            success: function (data) {
                if (data.Result) {
                    layer.msg("操作成功！");
                } else {
                    layer.msg(data.Message);
                }
            }
        });
    }

</script>